<!DOCTYPE html>
<html lang="en">
<head>        
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />

    <title>wWw.CheapWorldShop.Com - Login</title>

    <link rel="icon" type="image/ico" href="<?php echo Yii::app()->theme->baseUrl;?>/favicon.ico"/>
    
    <link href="<?php echo Yii::app()->theme->baseUrl;?>/css/stylesheets.css" rel="stylesheet" type="text/css" />
    <link rel='stylesheet' type='text/css' href='<?php echo Yii::app()->theme->baseUrl;?>/css/fullcalendar.print.css' media='print' />
    
</head>
<body>
    
    <div class="loginBox">
        <div class="loginHead">
            <img src="<?php echo Yii::app()->theme->baseUrl;?>/img/logo.png" alt="Aquarius -  responsive admin panel" title="Aquarius -  responsive admin panel"/>
        </div>
       <?php echo CHtml::beginForm(); ?>
            <div class="control-group">
                <label for="inputEmail">Tên đăng nhập</label>                
                <?php echo CHtml::activeTextField($model,'username') ?>
				<?php echo CHtml::error($model,'username'); ?>
            </div>
            <div class="control-group">
                <label for="inputPassword">Mật khẩu</label>                
                <?php echo CHtml::activePasswordField($model,'password') ?>
				<?php echo CHtml::error($model,'password'); ?>
            </div>
            <div class="control-group" style="margin-bottom: 5px;">                
                <label style="padding-left: 20px;" class="checkbox"><?php echo CHtml::activeCheckBox($model,'rememberMe'); ?> Ghi nhớ đăng nhập</label>                                                
            </div>
            <div class="form-actions">
				<?php echo CHtml::submitButton(UserModule::t("Đăng nhập"),array('class'=>'btn btn-block')); ?>
            </div>
        <?php echo CHtml::endForm(); ?>
        
    </div>
    
</body>
</html>
<?php
$form = new CForm(array(
    'elements'=>array(
        'username'=>array(
            'type'=>'text',
            'maxlength'=>32,
        ),
        'password'=>array(
            'type'=>'password',
            'maxlength'=>32,
        ),
        'rememberMe'=>array(
            'type'=>'checkbox',
        )
    ),

    'buttons'=>array(
        'login'=>array(
            'type'=>'submit',
            'label'=>'Login',
        ),
    ),
), $model);
?>